﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using HinduShop.Domain;
using HinduShop.Domain.Models;

namespace HinduShop.DbClassLib.Mappings
{
    class CategoryMap : ClassMap<Category>
    {
        public CategoryMap()
        {
            Id(x => x.Id);
            Map(x => x.Name);
            HasMany(x => x.Products);
        }
    }
}
